#ifndef __U8G2_OLED_DRIVER_H
#define __U8G2_OLED_DRIVER_H

#include "bsp_system.h"
/***********************通信端口定义****************************/
//硬件SPI通信端口
#define SPI_HW_DC_Pin GPIO_PIN_3
#define SPI_HW_DC_GPIO_Port GPIOA
#define SPI_HW_CS_Pin GPIO_PIN_4
#define SPI_HW_CS_GPIO_Port GPIOA
#define SPI_HW_HANDLE &hspi1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
/***********************宏函数定义****************************/

/***********************初始化函数声明****************************/
void user_u8g2_setup_sh1106_spi_hw(u8g2_t *u8g2);
/************************底层协议函数声明*************************/
/*硬件SPI初始化底层函数声明*/
uint8_t u8x8_byte_4wire_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
uint8_t u8x8_stm32_gpio_and_delay_hw_spi(U8X8_UNUSED u8x8_t *u8x8, U8X8_UNUSED uint8_t msg, U8X8_UNUSED uint8_t arg_int, U8X8_UNUSED void *arg_ptr);
#endif